* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #faf8ef;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    padding: 20px;
}

h1 {
    color: #776e65;
    font-size: 60px;
    margin-bottom: 10px;
}

.score-board {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.score, .best-score {
    background-color: #bbada0;
    color: #f9f6f2;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    width: 100px;
}

.game-board {
    background-color: #bbada0;
    width: 420px;
    height: 420px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
}

.tile {
    background-color: #cdc1b4;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

/* Tile colors based on value */
.tile-2 { background-color: #eee4da; }
.tile-4 { background-color: #ede0c8; }
.tile-8 { background-color: #f2b179; color: #f9f6f2; }
.tile-16 { background-color: #f59563; color: #f9f6f2; }
.tile-32 { background-color: #f67c5f; color: #f9f6f2; }
.tile-64 { background-color: #f65e3b; color: #f9f6f2; }
.tile-128 { background-color: #edcf72; color: #f9f6f2; }
.tile-256 { background-color: #edcc61; color: #f9f6f2; }
.tile-512 { background-color: #edc850; color: #f9f6f2; }
.tile-1024 { background-color: #edc53f; color: #f9f6f2; }
.tile-2048 { background-color: #edc22e; color: #f9f6f2; }

.game-info {
    margin-bottom: 20px;
    color: #776e65;
    font-size: 16px;
}

button {
    background-color: #8f7a66;
    color: #f9f6f2;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #7a6959;
}